package com.zbb.exam_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author zbbstart
 * @date 2021/2/12 - 12:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "题目对象", description = "封装了题目的各个属性后得到的一个实体对象")
public class Question implements Serializable {
    private static final long serialVersionUID = -3868722772998160638L;
    @TableId(value = "questionId",type = IdType.AUTO)
    @TableField("questionId")
    @ApiModelProperty(name = "questionId", value = "题目编号", example = "1")
    private Integer questionId;
    @TableField("questionContent")
    @ApiModelProperty(name = "questionContent", value = "题干内容", example = "1+1=？")
    private String questionContent;
    @TableField("answerA")
    @ApiModelProperty(name = "answerA", value = "选项内容", example = "田")
    private String answerA;
    @TableField("answerB")
    @ApiModelProperty(name = "answerB", value = "选项内容", example = "11")
    private String answerB;
    @TableField("answerC")
    @ApiModelProperty(name = "answerC", value = "选项内容", example = "3")
    private String answerC;
    @TableField("answerD")
    @ApiModelProperty(name = "answerD", value = "选项内容", example = "1")
    private String answerD;
    @TableField("analyse")
    @ApiModelProperty(name = "analyse", value = "题目分析", example = "2")
    private String analyse;
    @TableField("correctAnswer")
    @ApiModelProperty(name = "correctAnswer", value = "正确答案", example = "无解")
    private String correctAnswer;
    @TableField("teacherNo")
    @ApiModelProperty(name = "teacherNo", value = "老师编号", example = "3")
    private Integer teacherNo;
}
